<?php

namespace App\Http\Controllers\H5;

use App\Models\Pages;
use Illuminate\Http\Request;

class PagesController extends BaseController
{
    public function index()
    {


        return $this->view('h5.pages.index');
    }

    /**
     * @param $pageid
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function detail($pageid)
    {
        $page = Pages::find($pageid);

        return $this->view('h5.pages.detail', ['page'=>$page]);
    }
}
